<div class="page-content animated fadeIn h100p">
	<div class="row">
		<div class="col-xs-12">
			<form class="form-horizontal" id="ff" method="post" save_url="#(path)/user/save" update_url="#(path)/user/update">
				<input type="hidden" id="tid" name="user.id" value="#(user.id??)">
				<div class="form-group">
					<label class="col-sm-3 control-label">登录名称：</label>
					<div class="col-sm-8">
						<input class="easyui-textbox ftext" name="user.user_name" data-options="required:true" value="#(user.user_name??)"/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">真实姓名：</label>
					<div class="col-sm-8">
						<input class="easyui-textbox ftext" name="user.real_name" data-options="required:true" value="#(user.real_name??)">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">手机：</label>
					<div class="col-sm-8">
						<input class="easyui-textbox ftext" name="user.user_phone" data-options="required:true" value="#(user.user_phone??)">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">性别：</label>
					<div class="col-sm-8">
						#dic_for("sex","-1")
						<label class="inline">
			                <input type="radio" name="user.sex" class="ace" 
			                #if(item_code.toInt() == user.sex??1) checked #end
			                value="#(item_code)">
			                <span class="lbl middle"> #(item_value)</span>
			            </label>
			            #end
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">状态：</label>
					<div class="col-sm-8">
						<select class="easyui-combobox ftext" name="user.status">
							#dic_for("user_status","-1")
			                <option value="#(item_code)" 
			                #if(item_code.toInt() == user.status??10) selected #end
			                >#(item_value)</option>
			             	#end
			             </select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">角色：</label>
					<div class="col-sm-8">
						#for(x : roles)
						<label class="inline">
			                <input type="radio" name="user.role_id" class="ace" 
			                #if(x.id == user.role_id??) checked #end
			                value="#(x.id)">
			            	<span class="lbl middle"> #(x.role_name)</span>
			            </label>
			            #end
					</div>
				</div>
			</form>
		</div>
	</div>
</div>
<script src="#(path)/js/templates/pdc/user_form.js"></script>
